﻿using System.Windows;
using CP.NLayer.Client.WpfClient.Common;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;

namespace CP.NLayer.Client.WpfClient.Main
{
    /// <summary>
    /// Interaction logic for Shell.xaml
    /// </summary>
    public partial class Shell : Window
    {
        public Shell(IRegionManager regionManager, IModuleManager moduleManager)
        {
            InitializeComponent();
            moduleManager.ModuleDownloadProgressChanged += this.ModuleManager_ModuleDownloadProgressChanged;
            moduleManager.LoadModuleCompleted += this.ModuleManager_LoadModuleCompleted;
            regionManager.RegisterViewWithRegion(RegionNames.MainContentRegion, typeof(FirstContent));
        }

        private void ModuleManager_ModuleDownloadProgressChanged(object sender, ModuleDownloadProgressChangedEventArgs e)
        {
        }

        private void ModuleManager_LoadModuleCompleted(object sender, LoadModuleCompletedEventArgs e)
        {
        }
    }
}
